<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use App\Http\Api\Middleware\AuthMiddleware;
use App\Http\Api\Middleware\AuthWebSocketMiddleware;
use App\Http\Common\Middleware\CorsMiddleware;
use Hyperf\Validation\Middleware\ValidationMiddleware;

return [
    'http' => [
        // 跨域中间件
        CorsMiddleware::class,
        // 验证中间件
        ValidationMiddleware::class,
    ],
    'ws'=>[
        AuthWebSocketMiddleware::class
    ]
];
